#include <string>
#include "json.hpp"
#include <winsock2.h>
#include <ws2tcpip.h>
#pragma comment(lib, "ws2_32.lib")

using json = nlohmann::json;


class http_client {
public:
    http_client(std::string ip, int port);
    void send_http(std::string method, json data);
private:
    std::string ip;
    int port;
    SOCKET ClientSocket;
    SOCKADDR_IN sockAddr;
};

